package com.hotel.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hotel.dao.DishesMapper;
import com.hotel.entity.Dishes;
import com.hotel.service.DishesService;

@Service("dishesService")
@Transactional(transactionManager="txManager")
public class DishesServiceImpl implements DishesService {
	
	@Resource
	private DishesMapper dishesMapper;

	@Override
	public int deleteByPrimaryKey(String dishesno) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(Dishes record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(Dishes record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Dishes selectByPrimaryKey(String dishesno) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKeySelective(Dishes record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKey(Dishes record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<Dishes> findAllDishes(Integer pageNo, Integer pageSize) {
		return dishesMapper.findAllDishes((pageNo-1)*pageSize, pageSize);
	}

}
